package com.jic.market.api.manage;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.request.*;
import com.jic.market.response.PageResponse;
import com.jic.market.response.PromotionProductResponse;
import com.jic.market.response.QueryMutexProductDetailResponse;
import com.jic.market.response.ReloadMutexProductResponse;

/**
 * @author ：xuyongliang
 * @date ：Created in 2020/1/16 3:05 PM
 * @description：  促销商品控制类
 * @modified By：
 * @version: 1.0
 */
public interface PromotionProductManageApi {

    /**
     * 批量保存商品
     * @param ppsRequest
     * @return
     */
    RestResult<Integer> saveBatch(PromotionProductSaveListRequest ppsRequest);

    /**
     * 批量保存商品V2
     * @param ppsRequest
     * @return
     */
    RestResult<Integer> saveBatchV2(PromotionProductSaveListRequest ppsRequest);

    /**
     * 查询当前促销商品
     * @param ppqlRequest
     * @return 分页促销商品
     */
    RestResult<PageResult<PromotionProductResponse>> getPromotionProductList(
            PromotionProductQueryListRequest ppqlRequest);

    /**
     * 批量撤销
     * @param request
     * @return 撤销商品ids
     */
    RestResult deleteProductBatch(
            DeleteProductBatchRequest request);


}
